<template>
    <div class="content">
        <el-card>
            <div class="box">
                <img class="img" src="../../assets/images/tx.png" alt="">
                <!-- <el-image class="img" src="../../assets/images/tx.png" /> -->
                <div class="uname">
                    <h2>{{ getTime() }}好: <span>{{ useUser.userInfo.name }}</span></h2>
                    <span>欢迎来到旅游视界</span>
                </div>
            </div>
        </el-card>
        <div class="welcome">
            <SvgIcon name="welcome02" width="600px" height="600px" />
        </div>
    </div>
</template>

<script setup lang="ts">
import { getTime } from '@/utils/time';
import { useUserStore } from '@/stores/modules/user'
const useUser = useUserStore()
</script>

<style scoped lang="scss">
.content {

    .box {
        display: flex;
        align-items: center;

        .img {
            width: 120px;
            height: 120px;
            border-radius: 50%
        }

        .uname {
            margin-left: 15px;

            h2 {
                font-size: 20px;
                font-weight: 600;
                margin-bottom: 10px;

                span {
                    color: orange;
                }
            }
        }
    }

    .welcome {
        display: flex;
        justify-content: center;
    }
}
</style>
